$("#checkall_h").bind("click",function() {
	selectall(this);
});
$("#checkall_f").bind("click",function() {
	selectall(this);
});
function act_user(act) {
	var idlist = [];
	$.each($("input[@type=checkbox][@name=checkall_][@checked]"),function(i,n) {
		idlist.push($(n).val());
	});
	if(idlist.length==0) {
		alert("请选择用户");
		return false;
	}
	var id = idlist.toString();
	var delflag = true;
	if(act=="Del") {
		var str = "你确定要删除";
		delflag = window.confirm(str);
	} else if(act=="Disable") {
		var str = "你确定要冻结";
		delflag = window.confirm(str);
	}
	$("#act_user").val(0);
	if(!delflag) {
		return false;
	} else {
		$.ajax({
			type:"post",
			url:"index.php?controller=UserAdmin&action="+act+"User",
			data:"id="+id,
			success:function (msg) {
				$("body").eq(0).append(msg);
			}
		});
		window.setTimeout(getUserList,1000);
	}
}